package com.nalai.market.v1.model;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import java.time.LocalDateTime;

import com.baomidou.mybatisplus.annotation.TableField;

import java.io.Serializable;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 *
 * </p>
 *
 * @author com.nalai
 * @since 2021-08-23
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("goods")
public class Goods implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField("user_id")
    private Integer userId;

    @TableField("title")
    private String title;

    @TableField("intro")
    private String intro;

    @TableField("created")
    private LocalDateTime created;

    @TableField("original_price")
    private Double originalPrice;

    @TableField("current_price")
    private Double currentPrice;

    @TableField("url")
    private String url;

    @TableField("school_id")
    private Integer schoolId;

    @TableField("view_count")
    private Long viewCount;

    @TableField("category_levelone_id")
    private Integer categoryLeveloneId;

    @TableField("category_leveltwo_id")
    private Integer categoryLeveltwoId;


}
